<?php
if(!check_manager_login()) exit('无权查看，请登录!');
require_once(MODEL_PATH.DS.'Attribute.php');
$Attribute = new Attribute();
$id = isset($_GET['attr_id'])?(int)$_GET['attr_id']:'';
$result = $Attribute->delAttributeById($id);
if($result){
	redirect('index.php?mod=attribute&act=list','删除成功！');
}else{
	redirect('index.php?mod=attribute&act=list','删除失败！');
}
?>